#ifndef SERIALTHREAD_H
#define SERIALTHREAD_H

#include <QThread>
#include <QString>
#include "posix_qextserialport.h"

class SerialThread: public QThread
{
    Q_OBJECT
public:
        SerialThread(QString portName,BaudRateType baud,DataBitsType databits,ParityType parity, StopBitsType stopbits, FlowType flow,long timeout);
        Posix_QextSerialPort *myCom;
private:
        void run();
        QString data;
signals:
        void serialFinished(QByteArray str);
};

#endif // SERIALTHREAD_H
